package com.beans;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * Created with IntelliJ IDEA.
 * User:xieChao
 * Date:2022/11/29 23:18
 */
@Controller
public class UserController1 {
    /**
     * 属性/字段注入
     */
    @Autowired
    private UserService userService;
    public void sayHi(){
        userService.sayHi();
    }

}
